package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jt.entity.ExcelField;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "user")
public class User {

    @TableId
    @ExcelField(name = "用户ID", order = 1)
    private String id;

    @TableField(value = "age")
    @ExcelField(name = "年龄", order = 2)
    private String age;

    @TableField(value = "username")
    @ExcelField(name = "姓名", order = 3)
    private String username;

    @TableField(value = "password")
    @ExcelField(name = "密码", order = 4)
    private String password;

    @TableField(value = "phone")
    @ExcelField(name = "电话", order = 4)
    private String phone;


    @TableField(value = "email")
    @ExcelField(name = "邮件", order = 4)
    private String email;

    @TableField(value = "status")
    @ExcelField(name = "状态", order = 4)
    private String status;

    @TableField(value = "department")
    @ExcelField(name = "部门ID", order = 4)
    private String department;

    @TableField(value = "avatar")
    @ExcelField(name = "图片", order = 4)
    private String avatar;

    @TableField(exist = false)
    private List<Role> roles;

    @TableField(exist = false)
    private String deptId;

    @TableField(exist = false)
    private boolean updateOrSave;
}
